//
//  CustomTextField.m
//  安好
//
//  Created by 冯凯 on 14-11-3.
//  Copyright (c) 2014年 lianchuangbrother. All rights reserved.
//

#import "CustomTextField.h"

@implementation CustomTextField

/*
 *  重绘TextField的placeholder的颜色和字体大小
 *
 *  @param rect 重绘TextField的placeholder的颜色和字体大小
 */
- (void)drawPlaceholderInRect:(CGRect)rect
{
    [[UIColor colorWithRed:0.75f green:0.78f blue:0.79f alpha:1.00f]setFill];
    
    
    [[self placeholder] drawInRect:rect withFont:[UIFont systemFontOfSize:13]];
    
}
/**
 *  重绘TextField的placeholder的位置
 *
 *  @param bounds textField的位置
 *
 *  @return 重绘TextField的placeholder的位置
 */
-(CGRect)placeholderRectForBounds:(CGRect)bounds
{
    
    CGRect inset = CGRectMake(bounds.origin.x + 3, bounds.origin.y + 9.5, bounds.size.width, bounds.size.height);
    return inset;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


@end
